package 设计模式.原型.浅克隆;

public class ConcreteTypeTest {


    public static void main(String[] args) {
        ConcretePrototype concretePrototype = new ConcretePrototype();
        concretePrototype.setName("mfg");
        concretePrototype.setAge(24);

        ConcreteClient client = new ConcreteClient();
        IPrototype concrete = client.startClone(concretePrototype);
        System.out.println(concrete);

        System.out.println("======  浅克隆对比 ========");
        System.out.println(concretePrototype == concrete);
    }
}
